import request from '@/utils/request.ts'
import {
  AnimeOverViewType,
  AnimeSummaryType,
  ResponseType,
} from '@/type/typedefine.ts'

export function getAnimeListRequest(): Promise<
  ResponseType<AnimeOverViewType[]>
> {
  return request({
    url: '/anime/list',
    method: 'get',
  })
}

export function getAnimeSummaryRequest(
  id: bigint,
): Promise<ResponseType<AnimeSummaryType>> {
  return request({
    url: '/anime/summary/' + id.toString(),
    method: 'get',
  })
}
